import Layout from "../layout/index.vue";

const routes = [
  {
    path: "/",
    component: Layout,
    redirect: "/home",
    children: [
      {
        path: "home",
        name: "Home",
        component: () => import("../views/home/index.vue"),
        meta: { title: "首页" },
      },
      {
        path: "vue3/:page*",
        name: "Vue3App",
        component: () => import("../views/subapp/index.vue"),
        meta: { title: "Vue3子应用" },
      },
    ],
  },
];

export default routes;
